/**
 * 
 */
package org.acompanhamento.dao;

import java.util.List;

import org.acompanhamento.domain.Status;
import org.acompanhamento.domain.StatusTransiction;
import org.hibernate.Criteria;
import org.hibernate.criterion.Restrictions;

import bancosys.tec.persist.dao.BaseDAO;

/**
 * @author icaro
 *
 */
public class StatusTransictionDAO extends BaseDAO<StatusTransiction> {

	public List<StatusTransiction> findByFromStatus(Status from){
		Criteria criteria = this.createCriteria();
		criteria.add(Restrictions.eq("fromStatus", from));
		return this.executeQuery(criteria);
	}

}
